❌️GraphQL Nexus
https://gyazo.com/7ba12a75afe60e30fd91a58720b11dd8
https://github.com/graphql-nexus/nexus/issues/1139
メンテされてない
GraphQL binding
coreでGraphQL.jsを使っている
Code First
website
github
sdlから変換するconverterがある
https://nexusjs.org/converter
これがCode Firstです、と言われるとだいぶイメージしやすい
code:ts
const Mutation = objectType({
name: "Mutation",
definition(t) {
t.nonNull.list.string("someList", {
args: {
items: nonNull(list(stringArg())),
},
})
t.nonNull.field("createPost", {
type: Post,
args: {
input: arg({ type: nonNull(CreatePostInput) }),
},
})
t.nonNull.field("registerClick", {
type: Query,
args: {
uuid: arg({ type: UUID }),
},
})
}
})
GraphQL.js vs. TypeGraphQL vs. GraphQL Nexus | by Matt Lim | The Startup | Medium
GraphQL.jsとTypeGraphQLとNexusの比較記事
この著者的にはGraphQL.jsが良いらしい
Code-First, Type-Safe, GraphQL Schema Construction
https://www.wantedly.com/companies/wantedly/post_articles/183567